home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
baswiz19.zip
/
BW$BAS.ZIP
/
GN2PRINT.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
1KB
|
36 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION GN2GetPel% (BYVAL X%, BYVAL Y%)
DECLARE FUNCTION Power2I% (BYVAL PowerOf2 AS INTEGER)
DEFINT A-Z
SUB GN2Print (Device$)
Handle = FREEFILE
OPEN Device$ FOR OUTPUT AS Handle
WIDTH #Handle, 255
PRINT #Handle, CHR$(27); "3"; CHR$(24);
FOR Row = 0 TO 639 STEP 8
St$ = ""
PRINT #Handle, CHR$(27); "K"; CHR$(224); CHR$(1);
FOR Col = 0 TO 479
Posn = 0
FOR RowOfs = 0 TO 7
IF GN2GetPel(Col, Row + RowOfs) THEN
Posn = Posn + Power2I%(7 - RowOfs)
END IF
NEXT
St$ = St$ + CHR$(Posn)
NEXT
PRINT #Handle, St$
NEXT
PRINT #Handle, CHR$(27); "2"; CHR$(12);
CLOSE Handle
END SUB